package com.example.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.entity.UserRoles;
import com.example.mapper.UserRolesMapper;
import com.example.service.UserRolesService;

@Service
public class UserRolesSeviceImpl implements UserRolesService {
	
	@Autowired
	private UserRolesMapper userRolesMapper;
	/**
	 * 添加用户角色
	 */
	@Override
	public int addUserRoles(UserRoles userRoles) {
		// TODO Auto-generated method stub
		return userRolesMapper.addUserRoles(userRoles);
	}
	/**
	 * 删除用户角色
	 */
	@Override
	public int delUserRoles(UserRoles userRoles) {
		// TODO Auto-generated method stub
		return userRolesMapper.delUserRoles(userRoles);
	}

	
	

	
	

	
	

}
